-
-
Notifications
You must be signed in to change notification settings - Fork 46.6k
[WIP] restore .py
file extensions to the tensorflow files
#4331
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
.py
file extensions to the files (#3946).py
file extensions to the tensorflow files
@f0xxx1 Oh, there's one more PR to do the same job. I will keep this open. One more change which needs to be done is to remove the |
Ops, sorry for that. |
I believe that this will fail our tests because of #3946 |
I think there should only be one PR to fix #3946 and the rest should be closed in favor of it. This should be that PR as it already has the renaming part and we only need to test it after we enable |
Oh, completely missed that support for Python 3.9 is only added for the release candidate version. I will test it out whether it works or not for that version. |
.py
file extensions to the tensorflow files.py
file extensions to the tensorflow files
Awesome, it's working now! Just needs to fix those pre-commit error and once the library is released, this should be good to go :) @f0xxx1 Can you run |
@dhruvmanila I tried to fix the pre-commit errors however I don't think that black/flake8 are being compatible with the current configurations. I made some changes, but I think that I have to change way too much in order for it to work. Here is the output of the
Should I go for it or ? |
Please correct the flake8 issues. Black did a new release in the past 48 hours so please ensure that .pre-commit is using the latest black release. |
f"Validation size should be between 0 " | ||
f"and {len(train_images)}. Received: {validation_size}." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
f"Validation size should be between 0 " | |
f"and {len(train_images)}. Received: {validation_size}." | |
"Validation size should be between 0 and " | |
f"{len(train_images)}. Received: {validation_size}." |
@@ -46,16 +44,16 @@ def _read32(bytestream): | |||
def _extract_images(f): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Single letter variable names make the code look old school. Would it be possible upgrade to more self-documenting variable names and add type hints?
Please resolve conflicts because tensorflow v2.5 is shipping and #4422 has landed. |
Describe your change:
Whenever Tensorflow is released for python 3.9 (tensorflow/tensorflow#44485) ensure that the tests are passing.
fixes: #3946
Checklist:
Fixes: #{$ISSUE_NO}
.